package com.yanmaohu.yulia.statement;

import com.yanmaohu.yulia.bean.NestingOption;
import com.yanmaohu.yulia.bean.SqlStatementName;
import com.yanmaohu.yulia.bean.UsingDescriptor;

/**
 * @author Bright Lee
 */
public final class DescribeInputStatement implements DescribeStatement {

    private int beginIndex;
    private int endIndex;
    private SqlStatementName sqlStatementName;
    private UsingDescriptor usingDescriptor;
    private NestingOption nestingOption;

    public DescribeInputStatement(int beginIndex,
                                  int endIndex,
                                  SqlStatementName sqlStatementName,
                                  UsingDescriptor usingDescriptor,
                                  NestingOption nestingOption) {
        this.beginIndex = beginIndex;
        this.endIndex = endIndex;
        this.sqlStatementName = sqlStatementName;
        this.usingDescriptor = usingDescriptor;
        this.nestingOption = nestingOption;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    public SqlStatementName getSqlStatementName() {
        return sqlStatementName;
    }

    public UsingDescriptor getUsingDescriptor() {
        return usingDescriptor;
    }

    public NestingOption getNestingOption() {
        return nestingOption;
    }

}
